package com.balabala.gym_system.service.impl;

import com.balabala.gym_system.mapper.NoticeMapper;
import com.balabala.gym_system.pojo.dto.NoticeDto;
import com.balabala.gym_system.pojo.entity.Notice;
import com.balabala.gym_system.pojo.vo.NoticeVo;
import com.balabala.gym_system.service.NoticeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {

    @Override
    public List<NoticeVo> findNoticeByTitleAndDate(NoticeDto noticeDto) throws ParseException {
        List<NoticeVo> noticeByTitleAndDate = getBaseMapper().findNoticeByTitleAndDate(noticeDto);
        return noticeByTitleAndDate;
    }
}
